home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
clipper
/
nftroff.zip
/
12.tr
< prev
next >
Wrap
Text File
|
1991-11-21
|
29KB
|
1,749 lines
.de }n
.bp
.sp .5i
..
.wh -.8i }n
.sp .5i
.po -.4i
.ll 7.5i
.ps 9
.vs 9
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_ENDCAP() Cancel a specific NetWare print queue capture
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_ENDCAP()
Cancel a specific NetWare print queue capture
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_ENDCAP( [ <nLPTPortNumber> ] ) -> lResult
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
\fB<nLPTPortNumber>\fR is the captured LPT port to cancel\. If the
parameter is omitted, the default port of LPT1: is used\.
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
\.T\. if successful
.sp
.in 0.08i
\fBDescription
.sp
.in 0.32i
This routine is used to close a specific capture on the specified LPT
port\. When this command is issued, the LPT port is no longer redirected
to the print queue, and any information waiting in queue to be printed
will be printed\.
.sp
This routine was designed and written for Advanced NetWare 286 v 2\.1 or
NetWare 386 v 3\.0 or better\. It has been tested on Advanced NetWare 286
v 2\.15 rev A & C and NetWare 386 v 3\.0\.
.sp
This source code was written for Microsoft Macro Assembler v 5\.1\. It
should work with any assembler with minor modifications\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.32i
.br
(in DOS)
.br
F:>CAPTURE S=ServerName Q=PrintQueueName T=0 L=2
.br
Device LPT2: re-routed to queue PrintQueueName on server ServerName\.
.br
F:>CAPTURE S=ServerName Q=PrintQueueName T=0 L=1
.br
Device LPT1: re-routed to queue PrintQueueName on server ServerName\.
.sp
.br
(in your Clipper application)
.br
FT_ENDCAP(2) // Closes LPT2: capture, and flushes print buffer
.br
\.\.\.
.br
\.\.\.
.ta 1.04i
.br
FT_ENDCAP() // Closes LPT1: (default) capture, and flushes
.br
.ta
.in 1.36i
.ta 0.48i
.br
// print buffer
.br
.ta
.sp
.in 0.08i
\fBSource:\fR ENDCAP\.ASM
.sp
\fBAuthor:\fR James R\. Zack
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_LOGOUT() Logout from all currently connected NetWare file servers
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_LOGOUT()
Logout from all currently connected NetWare file servers
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_LOGOUT() -> NIL
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
NIL
.sp
.in 0.08i
\fBDescription
.sp
.in 0.32i
This routine is used to log the current user out of all connected file
servers and return control back to Clipper\. This is handy for writing
your own login screens in Clipper\. After the FT_LOGOUT() function is
called, you could have a login screen come up, and the users would
never see the DOS prompt again!
.sp
This routine was designed and written for Advanced NetWare 286 v 2\.0 or
NetWare 386 v 3\.0 or better\. It has been tested on Advanced NetWare 286
v 2\.15 rev A & C, NetWare 386 v 3\.0\.
.sp
Written in Microsoft MASM v5\.1
.sp
.in 0.08i
\fBExamples
.sp
.in 0.32i
.br
FT_LOGOUT()
.br
DO LOGINPRG
.sp
.in 0.08i
\fBSource:\fR LOGOUT\.ASM
.sp
\fBAuthor:\fR James R\. Zack
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_NOVDMP2() Determine Novell server\'s dynamic memory area 2 availability
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_NOVDMP2()
Determine Novell server\'s dynamic memory area 2 availability
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.32i
\fBFT_NOVDMP2() -> nDMP2
.sp
.in 0.08i
\fBArguments
.sp
.in 0.32i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.32i
The total available dynamic memory area 2 on current server, in bytes\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.24i
This function is used primarily on Novell 2\.15 TTS Servers\. Dynamic
Memory area 2 is where the transaction tracking takes place\. This
function allows you to query the ability of the server to handle any
transactions you may wish to start\. (I personally don\'t let the area
fall below 8K)\. It is generally only useful in large batch situations
and if you are using NETLIB\'s TTS capability\.
.sp
.sp
.in 0.08i
\fBExamples
.sp
.in 0.24i
.ta 1.44i
.br
t_trans(ON) // Netlib function
.br
.ta
.br
DO WHILE FT_NOVDMP2() > 8000 \.AND\. ! Eof()
.sp
.in 0.48i
.br
REPLACE foo WITH \'bar\'
.br
SKIP
.sp
.in 0.24i
.br
ENDDO
.br
t_trans(OFF)
.sp
.sp
.in 0.08i
\fBSource:\fR NOVDMP2\.ASM
.sp
\fBAuthor:\fR David Minter
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_NOVPURGE() Purge all deleted files on a Novell server
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_NOVPURGE()
Purge all deleted files on a Novell server
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.32i
\fBFT_NOVPURGE() -> lTemp
.sp
.in 0.08i
\fBArguments
.sp
.in 0.32i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.32i
\.T\. if successful, otherwise \.F\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.24i
This function is to purge those files that a workstation has
previously deleted\. This function only works on a Novell network\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.24i
.br
ERASE FILE foo\.bar
.br
ERASE FILE foo2\.bar
.br
ERASE FILE foo3\.bar
.br
? FT_NOVPURGE()
.sp
.in 0.08i
\fBSource:\fR NOVPURGE\.ASM
.sp
\fBAuthor:\fR David Minter
.in 0i
.ta 1.63265i
.sp 2
.ne 20
.ps +3
.vs +3
FT_NWLSTAT() Return the current Novell NetWare logical station number
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_NWLSTAT()
Return the current Novell NetWare logical station number
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
\fBFT_NWLSTAT() -> nStatNum
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
None
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
A numeric corresponding to the current logical station number
assigned by NetWare\.
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
In order to find out information about a particular node logged
in to a NetWare server, you will need the logical
.ta 4.32i
station number, also known as a "connection number\." This
.br
.ta
function will return that number\. This will be a number from 1 to 100
under NetWare 286, or from 1 to 250 under NetWare 386\. This is *not*
the same as a physical station number\.
.sp
This function requires FT_INT86()\.
.sp
This function does NOT test for the existence of the NetWare shell\.
The behavior is undefined if no shell is loaded\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
QOut( "Logical station: " + str( FT_NWLSTAT() ) )
.sp
.in 0.08i
\fBSource:\fR NWLSTAT\.PRG
.sp
\fBAuthor:\fR Glenn Scott
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_NWSEMCLOSE() Close a NetWare semaphore
.br
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_NWSEMCLOSE()
Close a NetWare semaphore
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.4i
.ta 2.24i
\fBFT_NWSEMCLOSE( <nHandle> ) -> nRc
.br
.ta
.sp
.in 0.08i
\fBArguments
.sp
.in 0.4i
\fB<nHandle>\fR is the semaphore handle, returned from a previous call
to FT_NWSEMOPEN()\.
.sp
.in 0.08i
\fBReturns
.sp
.in 0.4i
nRc, a numeric, as follows:
.sp
.in 0.96i
0 - success
.in 0.8i
255 - invalid semaphore handle
.sp
.in 0.08i
\fBDescription
.sp
.in 0.4i
Call FT_NWSEMCLOSE() when the app is finished\. This decrements
the open count for the semaphore\. If the open count hits zero,
the semaphore is deleted by NetWare\.
.sp
.in 0.08i
\fBExamples
.sp
.in 0.4i
QOUT( "Close returns: " + STR( FT_NWSEMCLOSE( nHandle ) ) )
.sp
.in 0.08i
\fBSource:\fR NWSEM\.PRG
.sp
\fBAuthor:\fR Glenn Scott
.in 0i
.sp
.in 1.5i
.ti -1.5i
.ta 1.5i
.ft B
See Also:
.ft R
FT_NWSEMOPEN()
, FT_NWSEMEX()
, FT_NWSEMWAIT()
, FT_NWSEMSIG()
, FT_NWSEMLOCK()
.ta 1.63265i
.in 0i
.sp 2
.ne 20
.ps +3
.vs +3
FT_NWSEMEX() Examine a NetWare semaphore\'s value and open count
.br
.ta
.in 0.08i
.ps -3
.vs -3
.sp 2
\fBFT_NWSEMEX()
Examine a NetWare semaphore\'s value and open count
.in 0i
.br
\l'6.24i'
.br
.sp
.in 0.08i
\fBSyntax
.sp
.in 0.48i
\fBFT_NWSEMEX( <nHandle>, <@nValue>, <@nOpenCnt> ) -> nRc
.sp
.in 0.08i
\fBArguments
.sp
.in 0.48i
\fB<nHandle>\fR is the semaphore handle, returned from a previous call
to FT_NWSEMOPEN()\.
.sp
\fB<@nValue>\fR will get the current semaphore value\. THIS NUMERIC
ARGUMENT MUST BE PASSED BY REFERENCE!
.sp
\fB<@nOpenCnt>\fR will get the current number of workstations
that have opened the semaphore\. THIS NUMERIC ARGUMENT MUST BE
PASSED BY REFERENCE!
.sp
.in 0.08i
\fBReturns
.sp
.in 0.48i
nRc, a numeric, as follows:
.sp
.in 0.96i
0 - success
.in 0.8i
255 - invalid semaphore handle
.sp
.in 0.48i
In addition, nValue w